<%@include file="/WEB-INF/jsp/common/header.jsp" %>

<script>
			$(document).ready(function() {

				//MAIN FORM
				//Click Save button
				$("a.save").click(function(){
					$("#appellation-create-form").submit();
				});
			});
</script>
<div class="dashboard">
				<form:form id="appellation-create-form" modelAttribute="appellation" action="./create.html" method="POST" >

				<div class="grid_3 alpha">
                    <c:if test="${appellation.id==null}">
					<label class="page-title"><spring:message code="administration.appellation.create" /></label>
                    </c:if>
                    <c:if test="${appellation.id!=null}">
					<label class="page-title"><spring:message code="administration.appellation.modify" /></label>
                    </c:if>
					<a class="back action-link" href="./list.html"><spring:message code="back" /></a>
					<a class="save action-link" href="javascript:void(0)"><spring:message code="save" /></a>
					<c:if test="${appellation.id!=null}">
					<a class="cancel action-link" href="./delete.html?id=${appellation.id}"><spring:message code="delete" /></a>
					</c:if>
					<%--<c:if test="${appellation.id==null}">
					<a class="cancel action-link" href="./list.html"><spring:message code="cancel" /></a>
					</c:if>--%>
				</div>

				<div class="grid_5 item-form">
					<div class="title">
						<spring:message code="administration.appellation.information" />
					</div>

					<div>
						<form:label	for="name" path="name" cssErrorClass="error">
							<spring:message code="column.name" />
						</form:label>
						<form:input  cssClass="store-input required" path="name"/><span class="mandatory">*</span>
                        <form:errors path="name" />
                         <c:if test="${appellation.id!=null}">
                        <form:hidden path="id"/>
                        </c:if>
					</div>

				</div>

				<div class="grid_4 omega">
				</div>
				</form:form>
				<div style="clear:both;"></div>
			</div>


<%@include file="/WEB-INF/jsp/common/footer.jsp" %>